home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / system / linux_bo / netboot.zoo / dummy2.asm < prev    next >
Encoding:
Assembly Source File  |  1993-04-29  |  572 b   |  39 lines

  1. FUNNY_TEXT     SEGMENT BYTE PUBLIC 'BOOTF'
  2.     ASSUME  CS:FUNNY_TEXT
  3.     ASSUME    DS:FUNNY_TEXT
  4.  
  5.     org 0
  6.  
  7. go:
  8.     mov    si, offset xbooted
  9.     call    xouts_cs_si
  10.  
  11.     xor     ah,ah        ; wait for user press key
  12.     int     16h
  13.                 ; try to boot the system again
  14.     int     19h
  15.  
  16.     
  17. xoutch:
  18.     mov     ah,0eh
  19.     mov     bx,0007h
  20.     int     10h
  21.  
  22. xouts_cs_si:
  23.     mov    al,cs:[si]
  24.     inc    si
  25.     or     al,al    ; end of string
  26.     jnz     xoutch
  27.     ret
  28.  
  29. xbooted:
  30.     db 0Dh, 0Ah, 'I booted... press key', 0
  31.  
  32. fill2:    db (512-(offset FUNNY_TEXT:fill2-offset FUNNY_TEXT:go)) dup (0)
  33.  
  34.  
  35. FUNNY_TEXT              ENDS
  36.  
  37.     END    go
  38.  
  39.